package day8;

/**
 * @author oldliu
 * @since 1.0
 */
public class Car {
    String brand;
    int price;//万元

    public Car(String brand, int price) {
        this.brand = brand;
        this.price = price;
    }

    public void run(){
        System.out.println("价值"+price+"万元的"+brand+"在行驶");
        wuhuaqiyou();
        xirurongxi();
        dianhuo();
        paiyan();
    }


    private void wuhuaqiyou(){
        System.out.println("发送机吸入汽油，并雾化");
    }
    private void xirurongxi(){
        System.out.println("吸入压缩空气");
    }
    private void dianhuo(){
        System.out.println("点火，汽油开始燃烧膨胀，推动活塞运动，产生动力");
    }
    private void paiyan(){
        System.out.println("排出尾气");
    }
}
